#include<bits/stdc++.h>
using namespace std;
int a[200005],color[200005];
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    int t;
    cin>>t;
    while(t--){
        memset(a,0,sizeof a);
        memset(color,0,sizeof color);
        int n;
        cin>>n;
        cout<<0<<endl;
    }
    return 0;
}
